package com.gxa.autoparts.admin.service;

import com.gxa.autoparts.core.pojo.Goods;
import com.gxa.autoparts.core.pojo.GoodsType;
import com.gxa.autoparts.core.service.BaseService;

import java.util.List;
import java.util.Map;

public interface GoodsService extends BaseService<Goods> {
    List<Map> selectByPidAndGoodsName(Long pid, String name, Integer page, Integer size) throws Exception;
    List<Goods> selectAllGoods(Integer page,Integer size) throws Exception;
    GoodsType selectGoodsTypeByName(String name) throws Exception;
    List<GoodsType> selectGoodsTypeById(Long id) throws Exception;
    //void addGoods(Boolean state,Long typeId,String name,String img,);
    Map selectGoodsAllKind(Long id);
}
